<h1>文章列表</h1>
<ul>
    @if(count($articles) == 0)
        还没有文章，<a href="/authtest/public/article/add">点此添加</a>
    @endif
    @foreach($articles as $article)
    <li>
        {{ $article->title }} <span> <a style="color: #c0a16b" target="_blank" href="/authtest/public/article/show/{{  $article->id }}">查看</a> <a href="/authtest/public/article/edit/{{  $article->id }}">编辑</a>  <a style="color: #2ca02c" href="/authtest/public/article/del/{{  $article->id }}">删除</a></span>
    </li>
    @endforeach
</ul>

<a href="/authtest/public/article/add">添加文章</a>